* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font:400 16px/1.7 Consolas,Helvetica Neue,Helvetica,Arial,sans-serif;
    height: 100%;
    color: #501B15;
}

::selection{
    background-color:#222;
    color:#f9f9f9;
}
.main-content {
    min-height: 100%;
    margin: 0 auto;
    padding-top: 4em;
    padding-bottom: 80px;
    margin-bottom: -60px;
}

@media screen and (min-width: 800px) {
    .main-content {
        width: 800px;
    }
}
@media screen and (max-width: 800px) {
    .main-content {
        width: 100%;
    }
    #articlelist .type-head {
        padding-left: 20px;
    }
}

/*头部样式*/
#header {
    height: 3.4em;
    padding: 0 2em;
    background-color: #45b787;
    color: #191818;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 9999;
}

#header .logo {
    border-radius: 50%;
    margin-right: 2em;
    width: 2em;
    height: 2em;
    float: left;
    background:url("../img/logo.jpg") ;
    background-size: cover;
    margin-top: .7em;
    transition: all .5s ease-in-out;
}
#header .logo:hover {
    transform: rotateZ(360deg);
}
#header .title{
    display: none;
    line-height: 3.4em;
}

#header .title a{
    color: #111;
    text-decoration: none;
    cursor: auto;
}

#header .nav{
    float: left;
}

#header .nav ul{
    list-style: none;
    padding: 0;
    margin: 0;
}

#header .nav ul li{
    height: 3.4em;
    display: inline-block;
    line-height: 3.4em;
    padding: 0 1em;
    cursor: pointer;
}

#header .nav ul li:hover {
    background-color: #2c9678;
}

#header .nav ul li:hover a {
    color: #fff;
}

#header .nav ul li a{
    color: #191818;
    word-wrap: break-word;
    text-decoration: none;
    cursor: auto;
    cursor: pointer;
    display: inline-block;
    height: 3.4em;
}

#header .menu-tool{
    display: none;
}

#header:after {
    clear:both;
    content:'.';
    display:block;
    width: 0;
    height: 0;
    visibility:hidden;
}


@media screen and (max-width: 540px){

    #header .title{
        float: left;
        display: block;
    }

    #header .menu-tool{
        display: block;
        width: 1.4em;
        height: 1.4em;
        float: right;
        background: url("../img/menu.png");
        background-size: 1.4em 1.4em;
        background-repeat: no-repeat;
        margin-top: 1em;
    }

    #header .nav{
        position: fixed;
        display:none;
        top:50px;
        right:20px;
        z-index: 999;
        background-color: #45b787;
    }

    #header .nav ul{
        min-width: 100px;
        box-shadow: -4px 4px 5px rgba(0,0,0,0.4);
        list-style: none;
        font-size: 14px;
    }

    #header .nav ul li{
        height: 30px;
        display: block;
    }
    
    #header .nav ul li:hover {
        background-color: #2c9678;
    }

    #header .nav ul li a{
        display: block;
        text-align: center;
        white-space: nowrap;
        line-height: 30px;
        text-decoration: none;
        padding: 0;
        margin: 0;
    }

    #header .nav ul li a:hover{
        color: #fff;
    }
}

/*底部样式*/
footer{
    height: 60px;
    line-height: 30px;
    color: #888;
    font-size: 13px;
    text-align: center;
}

footer a{
    color: #2c9678;
    padding: 0 3px;
    text-decoration: underline;
}
/*列表样式*/

#articlelist .type-head{
    color: #999;
}


#articlelist .year-area:hover .type-head{
    color: #2c9678;
    font-weight: bold;
}

#articlelist ul{
    display: block;
    list-style-type: disc;
    padding-left: 40px;
    -webkit-margin-before: 1em;
    -webkit-margin-after: 1em;
    -webkit-margin-start: 0px;
    -webkit-margin-end: 0px;
    -webkit-padding-start: 40px;
}

#articlelist li{
    line-height: 30px;
    margin-bottom: 2px;
    display: list-item;
    text-align: -webkit-match-parent;
    list-style-type: katakana-iroha;
}

#articlelist li time{
    color: #999;
    font-size: 14px;
}

#articlelist li>a{
    color: #666;
    word-wrap: break-word;
    font-size: 14px;
    text-decoration: none;
    position: relative;
    height: 30px;
}
#articlelist li>a:after {
    content: "";
    display: block;
    position: absolute;
    width: 0;
    height: 1px;
    background-color: #45b787;
    left: 0;
    transition: width 0.4s ease-in-out;
}
#articlelist li>a:hover{
    color: #2c9678;
}
#articlelist li>a:hover::after {
    width: 100%;
}
#articlelist li span>a{
    font-size: 12px;
    text-decoration: none;
    color: #666;
    background-color: #ddd;
    padding: 2px 5px;
    border-radius: 8px;
}
#articlelist li span>a:hover {
    background-color: #2c9678;
    color: #fff;
}


@media screen and (max-width: 540px){
    #articlelist time,#articlelist span{
        display: none;
    }
}

/*关于我*/
.aboutMe {
    padding: 0 1em;
    font-size: 1em;
}
.aboutMe span {
    color: #45b787;
}